package com.hrt.manage.order.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hrt.base.BaseDaoImpl;
import com.hrt.bean.OrderDetail;
import com.hrt.manage.order.dao.OrderDetailDao;
@Repository
public class OrderDetailDaoImpl extends BaseDaoImpl<OrderDetail> implements OrderDetailDao{

	/* 
	 * 根据订单Id查找订单详情实体
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<OrderDetail> queryDetailByOrderId(Long orderId) {
		String sql = "select orderDetail from OrderDetail orderDetail where orderDetail.orderId = '"+orderId+"'"+"and orderDetail.isdelete=0";
		return this.getHibernateTemplate().find(sql);
	}

}
